﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Runda.EShop.Web
{
    public partial class error : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Exception error = Server.GetLastError();
            if (error != null)
            {
                if (error is HttpUnhandledException) error = error.InnerException;
                this.spanErrorMessage.InnerHtml = HttpUtility.HtmlEncode(error.Message);
                //this.textStackTrace.InnerHtml = error.ToString();
            }
        }
    }
}